"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.shallowClone = void 0;

/**
 *
 * @param obj 要拷贝的对象
 * ```js
 * const a = { a: {b: 1} }
 * const c = shallowClone(a)
 * c.a === a.a // true
 * ```
 */
var shallowClone = function shallowClone(obj) {
  return Object.assign({}, obj);
};

exports.shallowClone = shallowClone;